import { createStore, applyMiddleware } from "redux"
//2.引入 reducer
import reducer from "./reducers"
//a.2 reduxThunk 引入
import reduxThunk from "redux-thunk"
//3. 导出仓库
//a.3 将 reduxThunk 作为第二个参数传入
export default createStore(reducer, applyMiddleware(reduxThunk))
